//
//  RootTableViewCell.m
//  UI_豆瓣项目
//
//  Created by dllo on 16/1/4.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "RootTableViewCell.h"

@implementation RootTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self GG];
    }return self;
    
    
}

- (void)dealloc {
    [_imageView1 release];
    [super dealloc];
}


- (void)GG {
    self.bigImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:_bigImageView];
    
    self.smallView = [[UIImageView alloc] init];
    [self.bigImageView addSubview:_smallView];
    
    
    self.headLable = [[UILabel alloc] init];
    [self.bigImageView addSubview:_headLable];
    
    self.timeLable = [[UILabel alloc] init];
    [self.smallView addSubview:_timeLable];
    
    self.addLable = [[UILabel alloc] init];
    [self.smallView addSubview:_addLable];
    
    self.leiXingLable = [[UILabel alloc] init];
    [self.smallView addSubview:_leiXingLable];
    
    self.xingquLable = [[UILabel alloc] init];
    [self.smallView addSubview:_xingquLable];
    
    self.canjiaLable = [[UILabel alloc] init];
    [self.smallView addSubview:_canjiaLable];
    
    self.imageView1 = [[UIImageView alloc] init];
    [self.smallView addSubview:_imageView1];
    
   
    
    
    
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
    
//    self.headLable.frame = CGRectMake(50, 50, 300, 50);
//    self.backgroundColor = [UIColor yellowColor];
    
    _bigImageView.frame = CGRectMake(375 / 2 - 152, 15, 304, 140);
    _bigImageView.image = [UIImage imageNamed:@"bg_eventlistcell"];
    
    _smallView.frame = CGRectMake(0, 30, 303, 110);
    _smallView.image = [UIImage imageNamed:@"bg_share_large"];
    _headLable.frame = CGRectMake(0, 0, 303, 30);
//    _headLable.backgroundColor = [UIColor redColor];
    
    _timeLable.frame = CGRectMake(0, 0, 200, 20);
//    _timeLable.backgroundColor = [UIColor cyanColor];
    
    _addLable.frame = CGRectMake(0, 21, 200, 20);
//    _addLable.backgroundColor = [UIColor purpleColor];
    
    _leiXingLable.frame = CGRectMake(0, 42, 200, 20);
//    _leiXingLable.backgroundColor = [UIColor blueColor];
    UIImageView *imageview = [[UIImageView alloc] init];
    imageview.image = [UIImage imageNamed:@"icon_date_blue"];
    
    _xingquLable.frame = CGRectMake(0, 84, 80, 20);
//    _xingquLable.backgroundColor = [UIColor whiteColor];
    
    _canjiaLable.frame = CGRectMake(80, 84, 80, 20);
//    _canjiaLable.backgroundColor = [UIColor brownColor];
    
    _imageView1.frame = CGRectMake(201, 0, 100, 108);
//    _imageView1.backgroundColor = [UIColor orangeColor];
    
}










- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
